import request from '@/utils/request';
import type {IBannerResponse, ICardResponse} from '@/typings/api';

/**
 * 获取首页展示的轮播图列表
 */
export function getBannerList() {
    return request<IBannerResponse>(
        '/banner/v1/list?location=home_swiper_banner'
    );
}

/**
 * 获取首页展示的商品卡片列表
 */
export function getCardList() {
    return request<ICardResponse[]>('/product/v1/card');
}

